package com.lion.ball.modules.orderfood.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 食品动态数据 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "食品动态数据 排序参数")
public class OfdFoodDataOrderParam {
    @Schema(description = "主键", example = "1")
    private int id;
    @Schema(description = "编码", example = "1")
    private int code;
    @Schema(description = "食品编码", example = "1")
    private int foodCode;
    @Schema(description = "库存", example = "1")
    private int stock;
    @Schema(description = "收藏", example = "1")
    private int favorite;
    @Schema(description = "点赞", example = "1")
    private int heart;
    @Schema(description = "评论", example = "1")
    private int comment;
    @Schema(description = "推荐", example = "1")
    private int recommend;
    @Schema(description = "拉黑", example = "1")
    private int blacklist;
    @Schema(description = "创建时间", example = "1")
    private int createTime;
    @Schema(description = "更新时间", example = "1")
    private int updateTime;
    @Schema(description = "是否删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdFoodDataOrderParam() {
    }

    // 全参数构造方法
    public OfdFoodDataOrderParam(int id, int code, int foodCode, int stock, int favorite, int heart, int comment, int recommend, int blacklist, int createTime, int updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.foodCode = foodCode;
        this.stock = stock;
        this.favorite = favorite;
        this.heart = heart;
        this.comment = comment;
        this.recommend = recommend;
        this.blacklist = blacklist;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdFoodDataOrderParam create(int id, int code, int foodCode, int stock, int favorite, int heart, int comment, int recommend, int blacklist, int createTime, int updateTime, int isDeleted) {
        return new OfdFoodDataOrderParam(id, code, foodCode, stock, favorite, heart, comment, recommend, blacklist, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdFoodDataOrderParam of(int id, int code, int foodCode, int stock, int favorite, int heart, int comment, int recommend, int blacklist, int createTime, int updateTime, int isDeleted) {
        return new OfdFoodDataOrderParam(id, code, foodCode, stock, favorite, heart, comment, recommend, blacklist, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public OfdFoodDataOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getCode() {
        return code;
    }

    public OfdFoodDataOrderParam setCode(int code) {
        this.code = code;
        return this;
    }

    public int getFoodCode() {
        return foodCode;
    }

    public OfdFoodDataOrderParam setFoodCode(int foodCode) {
        this.foodCode = foodCode;
        return this;
    }

    public int getStock() {
        return stock;
    }

    public OfdFoodDataOrderParam setStock(int stock) {
        this.stock = stock;
        return this;
    }

    public int getFavorite() {
        return favorite;
    }

    public OfdFoodDataOrderParam setFavorite(int favorite) {
        this.favorite = favorite;
        return this;
    }

    public int getHeart() {
        return heart;
    }

    public OfdFoodDataOrderParam setHeart(int heart) {
        this.heart = heart;
        return this;
    }

    public int getComment() {
        return comment;
    }

    public OfdFoodDataOrderParam setComment(int comment) {
        this.comment = comment;
        return this;
    }

    public int getRecommend() {
        return recommend;
    }

    public OfdFoodDataOrderParam setRecommend(int recommend) {
        this.recommend = recommend;
        return this;
    }

    public int getBlacklist() {
        return blacklist;
    }

    public OfdFoodDataOrderParam setBlacklist(int blacklist) {
        this.blacklist = blacklist;
        return this;
    }

    public int getCreateTime() {
        return createTime;
    }

    public OfdFoodDataOrderParam setCreateTime(int createTime) {
        this.createTime = createTime;
        return this;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public OfdFoodDataOrderParam setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdFoodDataOrderParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
